package com.example.hy2110szyx.repository;

import com.example.hy2110szyx.entity.Customer;
import com.example.hy2110szyx.entity.UserInfo;
import com.example.hy2110szyx.vo.CustomerVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface CustomerMapper {


    /**
     * 根據客戶ID查詢
     *
     * @param identity
     * @return
     */

    Customer queryByIdentity(String identity);

    /**
     * 查詢全部顧客信息
     * @return
     * @param
     */
    List<Customer> queryAll();

    Customer queryByCno(String cno);

    /**
     * 插入一個客戶
     * @param customer
     */
    void insertCustomer(Customer customer);

    /**
     * 根据条件查询所有旅客信息
     * @param
     * @return
     */
    List<Customer> queryAllCustomersConn(Customer condition);


    /**
     * 更新用户
     * @param customer
     */
    void updateOneCustomer(Customer customer);

    /**
     * 根据ids批量删除用户
     * @param ids
     */

    void deleteSomeById(Integer[] ids);
}
